package com.ltf.dao;

import com.ltf.entity.Prod;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ProdDao {
    public List<Prod> findAll();//查询所有
    public List<Prod> findPage(@Param("Kid") Integer kid,
                               @Param("p1") Double p1,
                               @Param("p2") Double p2,
                               @Param("start") Integer start,
                               @Param("lines") Integer lines);
    public List<Prod> findIf(@Param("Kid") Integer kid,
                             @Param("p1") Double p1,
                             @Param("p2") Double p2);
    public int add(Prod prod);
    public int update(Prod prod);
    public int remove(Integer id);
    public int getCount(@Param("Kid") Integer kid,
                        @Param("p1") Double p1,
                        @Param("p2") Double p2);
}
